package org.example.slave.fetch;

import java.io.IOException;

/**
 * @author dingrui
 * @since 2022/2/14
 * @description
 */
public abstract class AbstractFetcher implements Fetcher {

    @Override
    public void fetch() throws IOException {
        this.preFetch();
        this.doFetch();
        this.postFetch();
    }

    protected abstract void preFetch();

    protected abstract void doFetch();

    protected abstract void postFetch();
}
